package com.dartfar.util;

import java.net.InetAddress;
import java.net.UnknownHostException;

/**
 * 系统工具类
 * @author 王琦
 *
 */

public class SystemUtil {
	
	/**
	 * 获取本机IP地址
	 * @return IP地址
	 * @throws UnknownHostException
	 */
	public static String getIpAddress() throws UnknownHostException{ 
        InetAddress inet = InetAddress.getLocalHost();       
         return inet.getHostAddress();
    }

}
